
import { Tools } from 'weaver-mobile';


/***************   发票录入   *****************/
export const getEnterInvoiceTap = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getEnterInvoiceTap',  method:'GET', params});
}

//手动识别 page
export const getHandSetPage = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getHandSetPage',  method:'GET', params});
}

//发票识别 验票
export const enterInvoiceByOcr = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/enterInvoiceByOcr',  method:'POST', params});
}

//获取图片的地址
export const getImageBase64 = params => {
	return Tools.callApi({url:'/api/fna/invoiceLedger/getFapiaoImg',  method:'GET', params});
}


/*****************手动识别*******************/
//自动验票
export const getInvoiceInfoByCheck = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/getInvoiceInfoByCheck',  method:'GET', params});
}

//保存
export const saveInvoiceByCheck = (params={}) => {
	return Tools.callApi({url:'/api/fna/fnaEmbileMicroReport/saveInvoiceByCheck',  method:'POST', params});
}


